package com.lanxin.hr.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author author
 * @since 2025-07-30
 */
@TableName("zz_adjustment")
public class ZzAdjustment implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "oid", type = IdType.AUTO)
    private Integer oid;

    @TableField("empid")
    private Integer empid;

    @TableField("adjustDate")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime adjustDate;

    @TableField("origindeptid")
    private Integer origindeptid;

    @TableField("destdeptid")
    private Integer destdeptid;

    @TableField("originjobid")
    private Integer originjobid;

    @TableField("destjobid")
    private Integer destjobid;

    @TableField("reason")
    private String reason;

    public Integer getOid() {
        return oid;
    }

    public void setOid(Integer oid) {
        this.oid = oid;
    }
    public Integer getEmpid() {
        return empid;
    }

    public void setEmpid(Integer empid) {
        this.empid = empid;
    }
    public LocalDateTime getAdjustDate() {
        return adjustDate;
    }

    public void setAdjustDate(LocalDateTime adjustDate) {
        this.adjustDate = adjustDate;
    }
    public Integer getOrigindeptid() {
        return origindeptid;
    }

    public void setOrigindeptid(Integer origindeptid) {
        this.origindeptid = origindeptid;
    }
    public Integer getDestdeptid() {
        return destdeptid;
    }

    public void setDestdeptid(Integer destdeptid) {
        this.destdeptid = destdeptid;
    }
    public Integer getOriginjobid() {
        return originjobid;
    }

    public void setOriginjobid(Integer originjobid) {
        this.originjobid = originjobid;
    }
    public Integer getDestjobid() {
        return destjobid;
    }

    public void setDestjobid(Integer destjobid) {
        this.destjobid = destjobid;
    }
    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    @Override
    public String toString() {
        return "ZzAdjustment{" +
            "oid=" + oid +
            ", empid=" + empid +
            ", adjustDate=" + adjustDate +
            ", origindeptid=" + origindeptid +
            ", destdeptid=" + destdeptid +
            ", originjobid=" + originjobid +
            ", destjobid=" + destjobid +
            ", reason=" + reason +
        "}";
    }
}
